﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyAlbum.Utility;

namespace MyAlbum.Services
{
    public interface IDataService<T>
    {
        /// <summary>
        /// Load items
        /// </summary>
        /// <returns>List of T</returns>
        List<T> GetItems();
        void DeleteItem(T item);
        T GetItemById(string id);
        void AddItem(T item, IValidationSummary summary);
        void UpdateItem(T item, IValidationSummary summary);
    }
}
